//
//  MessageWindow.h
//  OrderSeat
//
//  Created by 王威 on 14-1-6.
//  Copyright (c) 2014年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AlertWindowView;
@protocol AlertWindowViewDelegate <NSObject>

@optional
- (void)willShowWindow:(AlertWindowView*)window;
- (void)willCloseWindow:(AlertWindowView*)window;
- (void)alertWindow:(AlertWindowView *)alertWindow clickedButtonAtIndex:(NSInteger)buttonIndex;

@end

@interface AlertWindowView : UIView

@property(weak, nonatomic)id<AlertWindowViewDelegate> m_delegate;

@property(strong, nonatomic) UIView         *baseView;
@property(strong, nonatomic) UIView         *backgroundView;
@property(strong, nonatomic) UIImageView    *backImageView;
@property(strong, nonatomic) UIButton       *oneButton;
@property(strong, nonatomic) UIButton       *twoButton;

- (id)initWithMessage:(NSString*)message delegate:(id<AlertWindowViewDelegate>)delegate buttonTitles:(NSArray*)buttonTitles;

- (void)showWindow;
- (void)closeWindow;

@end